﻿using System;
using System.IO;
using System.Reflection;

class DropGroupResource
{
    public Int32 id { get; set; }
    public Int32 drop_item_id_00 { get; set; }
    public Int32 drop_item_id_01 { get; set; }
    public Int32 drop_item_id_02 { get; set; }
    public Int32 drop_item_id_03 { get; set; }
    public Int32 drop_item_id_04 { get; set; }
    public Int32 drop_item_id_05 { get; set; }
    public Int32 drop_item_id_06 { get; set; }
    public Int32 drop_item_id_07 { get; set; }
    public Int32 drop_item_id_08 { get; set; }
    public Int32 drop_item_id_09 { get; set; }


    public Single drop_percentage_00 { get; set; }
    public Single drop_percentage_01 { get; set; }
    public Single drop_percentage_02 { get; set; }
    public Single drop_percentage_03 { get; set; }
    public Single drop_percentage_04 { get; set; }
    public Single drop_percentage_05 { get; set; }
    public Single drop_percentage_06 { get; set; }
    public Single drop_percentage_07 { get; set; }
    public Single drop_percentage_08 { get; set; }
    public Single drop_percentage_09 { get; set; }

    public Int32 drop_min_count_01 { get; set; }
    public Int32 drop_max_count_01 { get; set; }

    public Int32 drop_min_count_02 { get; set; }
    public Int32 drop_max_count_02 { get; set; }

    public Int32 drop_min_count_03 { get; set; }
    public Int32 drop_max_count_03 { get; set; }





    public Byte drop_min_count_00 { get; set; }
    public Byte drop_max_count_00 { get; set; }


    public Int32 drop_min_count_04 { get; set; }
    public Int32 drop_max_count_04 { get; set; }
    public Int32 drop_min_count_05 { get; set; }
    public Int32 drop_max_count_05 { get; set; }
    public Int32 drop_min_count_06 { get; set; }
    public Int32 drop_max_count_06 { get; set; }
    public Int32 drop_min_count_07 { get; set; }
    public Int32 drop_max_count_07 { get; set; }
    public Int32 drop_min_count_08 { get; set; }
    public Int32 drop_max_count_08 { get; set; }
    public Int32 drop_min_count_09 { get; set; }
    public Int32 drop_max_count_09 { get; set; }

    public void ReadFile(BinaryReader br)
    {
    this.id = br.ReadInt32();
    this.drop_item_id_00 = br.ReadInt32();
    this.drop_item_id_01 = br.ReadInt32();      
    this.drop_item_id_02 = br.ReadInt32();
    this.drop_item_id_03 = br.ReadInt32();
    this.drop_item_id_04 = br.ReadInt32();      
    this.drop_item_id_05 = br.ReadInt32();
    this.drop_item_id_06 = br.ReadInt32();
    this.drop_item_id_07 = br.ReadInt32();
    this.drop_item_id_08 = br.ReadInt32();
    this.drop_item_id_09 = br.ReadInt32();
    this.drop_percentage_00 = br.ReadSingle();
    this.drop_percentage_01 = br.ReadSingle();
    this.drop_percentage_02 = br.ReadSingle();
    this.drop_percentage_03 = br.ReadSingle();
    this.drop_percentage_04 = br.ReadSingle();
    this.drop_percentage_05 = br.ReadSingle();
    this.drop_percentage_06 = br.ReadSingle();
    this.drop_percentage_07 = br.ReadSingle();
    this.drop_percentage_08 = br.ReadSingle();
    this.drop_percentage_09 = br.ReadSingle(); 



    this.drop_min_count_01 = br.ReadInt32();
    this.drop_max_count_01 = br.ReadInt32();
    this.drop_min_count_02 = br.ReadInt32();
    this.drop_max_count_02 = br.ReadInt32();
    this.drop_min_count_03 = br.ReadInt32();
    this.drop_max_count_03 = br.ReadInt32();   


    this.drop_min_count_00 = br.ReadByte();   
    this.drop_max_count_00 = br.ReadByte();
   
    this.drop_min_count_04 = br.ReadInt32();     
    this.drop_max_count_04 = br.ReadInt32();

    this.drop_min_count_05 = br.ReadInt32();     
    this.drop_max_count_05 = br.ReadInt32();
    this.drop_min_count_06 = br.ReadInt32();     
    this.drop_max_count_06 = br.ReadInt32();     
    this.drop_min_count_07 = br.ReadInt32();     
    this.drop_max_count_07 = br.ReadInt32();     
    this.drop_min_count_08 = br.ReadInt32();     
    this.drop_max_count_08 = br.ReadInt32();     
    this.drop_min_count_09 = br.ReadInt32();     
    this.drop_max_count_09 = br.ReadInt32();     
    }
}